package com.hello.web.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hello.common.domain.entity.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;

/**
 * 角色权限关联表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_role_permission")
@Entity(name = "t_role_permission")
@org.hibernate.annotations.Table(appliesTo = "t_role_permission", comment = "角色权限关联表")
public class RolePermissionDO extends BaseDO {

    @ApiModelProperty(value = "角色Id")
    private Long roleId;

    @ApiModelProperty(value = "权限Id")
    private Long permissionId;

}